//
//  MovieDetailTableViewCell.m
//  豆瓣网络请求StoryBoard版
//
//  Created by JP on 16/1/29.
//  Copyright © 2016年 jp. All rights reserved.
//

#import "MovieDetailTableViewCell.h"
#import "UIImageView+WebCache.h"

@implementation MovieDetailTableViewCell


-(void)setMovieDetailModel:(ModelDetailModel *)movieDetailModel {
    _movieDetailModel = movieDetailModel;
    
    [self.movieImageView sd_setImageWithURL:[NSURL URLWithString:movieDetailModel.imageModel.large]];
    self.titleLabel.text = movieDetailModel.title;
    self.pubdateLabel.text = movieDetailModel.pubdate;
    self.ratingLabel.text = movieDetailModel.rating;
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
